Bug fix for host parsing