fix reversed patch