fix missing query attribute error
Merge pull request #26 from lmaycotte/fix_query_attr_err

fix missing query attribute error