fix decoder