Fixing the alternative constructor for hashtable