bug in class discovery