Fix hosts on connection