Fix rank range