fixed the typo in ItemDed(), so can determine accurate results [don't merge]

To ensure last PR has correct output, can compare CSV results from this fix against the changes I have made in the variablePackaging branch