Fixing bug in HashTable