fixed bugs in processing the lines when a user goes back to add something into the line.