Fixed bug in LightSensor