Debugging

fix repeat rank value problem.