Fixed a potential issue with hash collisions.