fixed save file handling