Fixed logical errors when assigning whitelist table