small fix for end game page script