Fixed a bug in hashtable's remove function