How to handle that a start and end in the wrong order?