For loop did not get saved