Fix one of the logic error of the end scene.