fixed getNextLine