Fixed incorrect loading of kinds