Fixed bug with "on line" appearing more than once on the line and causing a TypeError