fix rankings generation script