Fixed huffman-code issues