some fixes
huffmann is so cool...