Fixed huffman-code bug