Opacity correction