Lists duplicate keys in exception thrown