fix duplicate response bug in ping