Bug fix in model object conversion.