fix update PUT handler