Small improvement in calibrateKernel.