Fix inconsistent case treatment for patches.