fixed PUT and POST