Bugfixes in OpenCL backend index calculations