fix addSensor bug