Rectifying an error in decoder