Fix incorrectly applying incompatible package class to packages