[hashtable] Fixed problems and introduced debug code