removes useless patching