Fixes huffman compression