Prevent negative intervals