fix bug for blacklisted hosts