Bug fix for OpenCL Code Generation