Fixed finding public queries
Merge pull request #5 from PaiPan/migrate_2.4

Fixed finding public queries