fixed content-type bug when updating user objects by id