Based on https://github.com/mangos/mangos/commit/b58b29c9581327129daaf43b9c368810db850771 (cherry picked from commit a27a3e0457e3f6c2dd6955ce86b51888c5590ffc)
Based on https://github.com/mangos/mangos/commit/b58b29c9581327129daaf43b9c368810db850771 (cherry picked from commit a27a3e0457e3f6c2dd6955ce86b51888c5590ffc)