Fixed off-by-1 in storing seeds