Fix blindly applied patch