Fixing save to CSV from query panel.