Fix an indexing error for CUDA code