fixed persist! for ObjectResource