Fix Interface To linearIndex