fix error with ip-whitelist