Fix a stupid bug with ending a level.