Hello
I'm seeing that your master flat is a color image?
As far as I know, the calibration should be done w/o debayering.
So, master flat, Master Dark and Master Bias are Gray CFA images.
You shoud only debayer just before star alignment.
Regards
Geert