Fixed a bug in whitelist