fix -noprompt newline bug