Fix error when whitelist not presented