File read line bug fix