fix for flash problems