fix a bug when the classname is a single character