Fix minor bug where classes would appear multiple times in the root endpoint