Fixed invalid file saves.