Harmonization Algorithm bug getting more algorithm on each click