Correcting logic error that caused classes to not show up in the list (introduced in last commit).