Fixed autopopulate
Merge pull request #14 from JonCooperWorks/queries

Fixed autopopulate