fix for flash