Fixed bug in processing PUT requests.