Fixed bug for save as