fix PUT and update