fix edit hosts file bug.