fixed a concurrent issue in game engine