Fix the update-ranks scheduled task