Fix problem in office OpenCL format found by magnum by using valgrind