fix issues with model object