Fixed a bug which caused that no game result was created after the end of a game