Fix a bug: query empty