Fixed errors with editing iterations functionality.