Correct source lookup constraints for patches