bug fix - auto model