Fixed scanner.hasNextLine()