[bugfix] Fixed a bug that classify() rejects name only.