Fix ping query