adjust line numbers of patch