fixed rank line issue