fixes save() issue