Flashing bugfix