remove duplicated branches from active branches