Bug fixes in omm class ObjectModel.