fix in end game