fix contact line term in residue and jacobian