Fix double add to hashtable