Fixed some Dictionary exceptions when adding duplicate items