fixed multi output issue