Fixed a bug in queryList