bug fix in ping