fix in readLine() function