Quick fix for incorrect handling of duplicate values (Issue #86)

Issue #86
More info about the root cause of this bug can be found [here](http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/aa7687b8-34be-4268-a6ed-ba0641edf12f)