Ah, swap those 2 lines
Because you print now the line that has not been altered yet (you print the next line)