span: fix wrong next1 feature index in dual loop