Fixing PUT requests