Bugfix when add multiple algos with an array