fixed model caching issue