fixed ranIndex