Fix bug in Shop addObjects, add/update API methods.