set the flash mode when modifying, fixes GH-48