fix whitelist bug