Fix the model names in abstract template class