model bug correction