Bug fix in camera preview.