- Fix upgrade init (and remove the hack).
- Fix input flip state in upgrade mode.