Fix ping pong bug.