fix wrong logic on conditional checking of blacklisted node