Fixed sequince of commands execution

Fixed multiple calls, when cofig flush