fix phrase parsing