Bug fix for 'put' http method