Fixed visibleInDark bug