fix save flows and tabs