Bugfix: whitelist only added the first element refs #16693