fixing bug in algorithm settings generating