Fix bug where queries were not shown