Fixed bug with badly formed requests.