Dynamic effects of breakup on fusion reactions of weakly bound nuclei