fixed crash when sending in-game messages