fix rankfile