Fix XGetRequest patch