fix multiple solution return