fixed broken types add and update API
fixed broken objects add and update API