Fix flash export (flash chip id is a global)