Fixing finding table names for subclasses.