compilation fix for flash