bug fixes in ping check