Fix bug on saveas