Fix linenumbers when undoing multiple changes