fix bug with ping on unexisted host