fixed double increment during list iteration