fix compilation error for flash through openfl