fix #31201: Ties not correctly formed when adding an interval