fix game over bug