fixed bug from duplicated rho