fix denoise in parallel mode