list dialogue is not working if last id is selected
If the last person id is selected, the result is missing the last intervall.
The end of an intervall is detected by the following unchecked box. For the last id, there will not be a follow up.
Fix: after the loop, we can check if we are in the middle of detecting an interval.