fixes for flash