fix whitelistOnly error