Long distance effects in semi-inclusive B decays