Fix the decoder crash bug