Fixed invalid device issue in OpenCL loader.