fix density for continuous