Fixed a bug with top level class names.