fix bugs of flash object