fixed bug on http.put request