Bug fix

fixed a bug in case where class template year is not an integer