Fixed SensorHandler bugs