Fix a bug where nested classes were not being processed.