bugfix when retrieving model cache