Fixes bug with light widget.