Fixed "save as" bug