Fix flash type