Fix Medium flags for final variables