Fixing bugs in ping message processing