fix top level base class regexp