fix for hostname splitting bug