stop iteration fix