fixed a potential bug with overloading the base class name. fixes #1