Phrase extract bug fix