undo flag module changes