Fixed issue in update function. When the object was retrieved, it was
done with invalid parameters