Fix flash export (flashChipId is global)