fix hosts.txt loading bug