Small fix for CUDA