fix crash bug
fix crash bug

hughperkins/cuda-on-cl,hughperkins/cuda-on-cl,hughperkins/cuda-on-cl,hughperkins/coriander,hughperkins/coriander,hughperkins/coriander,hughperkins/coriander,hughperkins/cuda-on-cl