fix return value when UPDATE or CREATE obj