Fix hierafication of class groups file