Fix variable name error in manage-flags