Fixed bugs in the blacklist logic.