fixed bug in ping request