Add index to rankDetail