fixed a bug when saving after finished game