fix patching in spec