fix error7 issue while flashing