fixed ping/pong bug.