Fix game crash