fixed bug with ping