ew timer during handling timer_event doesn't set correctly

timer_event can add a new timer during iteration
the new timer must be handled correctly