Fixed a couple of bugs in the new /query/log page.