Fix usage of whitelist.