Solve link problems and fix for #3

Hi,

yeah with out it the simulations are broke. 

The problem is that it stops looking for other nodes after the first one failed to fulfil all dependencies. Although their might be other nodes from another branch that can be executed.