I know this is a bit old, but is that last line a typo? shouldn't it be yellow after magenta (cyan magenta yellow?) Or do you reset red saturation, tint, and luminance again (and not adjust yellow's?)