fix environment object leak and fix can not go to gameover scene sometimes