Clean lineNumber on transitions