some fixing with residual coding in the decoder