Fixed bugs in XML requests.