Fixes issue where exports doesn't run query.
Merge pull request #442 from LearningLocker/issue/exports

Fixes issue where exports doesn't run query.