fixing segmentation fault giving NDRange global dimensions