fix bug in file name prompt for save function