fixing a error on whitelist