fixing bugs in /etc/hosts configuration