Fixed bug on whitelist matching.