Fixes in TNT query dialog GUI