fixes inconsistent items bug