fix bug of longer phrase happens before shorter phrase