Fixed error with multiple solutions found