fix template class (again)