bug fix in allItemPromises
bug fix for allItem promises