fixed some bugs: only dependency on reversible reactions will be concidered