Fixed save as file bug