fix in purity plots