BUG: Fixed indices to pass ptr field when index is array