Correction to detection of top level classes.