Corrected version of patch