fixing typo in template class