Fixing error messages on query panel.