fix for night mode whitelist not working