Fixed a bug of missing internal filters when query is empty.