fix blacklist logic