bug fix for flash