* fix a bug for class validater.