Fix indexed access for lists