Fix flash layout error