fix issue in nano class template