Fixed a problem with get_dens_redshifts