Bugfix: correctly snap outer intervals to bounds