fixed bug where item types without a sort type cause an error