Fixes #1267
'phase' renamed to 'flight mode' everywhere in the code