fix for put requests