fix for possibleMinimalSorts NPE