Solved valgrind problems

Corrected a mistake in hash_table, and one in gui