fix PUT/POST bug