bug fix for denoise flag