CUDA CLUT fixing code