Fix whitelist handling, broken by previous commit.