fixed the patching