fixed the density plot