Fix for solution flags of unequal length