Bug fix to the readLine functions.