Fix the bug of phrase query.