Fix the streamcodec problem