Fixed bug in new -n option of read command