Fix a patch failed issue