Fixed hash duplication

On duplicate hash key, update the position in the array and its
associated hash value
halp