fix error of rank cause by sapwn