dnd: fix bug: check properly the link state !
use index starting at 1 for now, it's a linkst limitation