Correct a bug on the Sensor plugin