fix bug in convert script
index ranking