fix the array index to get column