Fix crash on game server
Fixed #894