fix the patching