fixing a bug introduced in 4e70c059e8f76d3e71da45d31ac31b6759f7b4b2

(IndexError in case of a gapless seed id)