Fix patch request handling