Fix bugs in CpuSensor