Fix whitelist not ever being checked