fix bug in update(), user_cred.get_object_gid() should be user_cred.get_gid_object()