fix for CUDA 5