fixed bug in saving games