Fix a bug where the order of SET(MAX_ITERATIONS) vs SET(ITERATION) would overwrite max_iterations with the default