update line number to point to patterns again