fix bug complex exclusive gateway