fixed bug for analyses without fabricated subsets

* Moved the best_scheme to merged_scheme within the while loop.
Otherwise it throws a bug that merged_scheme is undefined.