fixed bug after loading game