bug fix for saturation_wrapper.pro