Fixed bug with empty whitelist.