fix light sensor ambient mode not working.