Fixed PassingObjectToKernel compilation