fixed but that made the search crash when no solution could be found