fix to dItem error got reverted

Fixing from where the fix got reverted in merge