mysterious and stupid bug in opencl mem transfer