fixed ocl bug