Fixed error when no host matches