Fix bug with interval and id mixup in pair class.