Fix bug that enable pushing "next" before showing the end-game dialog.