fixed n <= rho bug