Fixed bug in newline interrupt code