Fix gameend bug.