Fixed line creation process (DateInterval comparison bug)