Fix small bug when the whitelist parameter is not provided