Repair some bugs of playing flash.