fix issue in feature detail controller

The index of data array is not stable. Need to use something else.