When you get negative values because of a loop, it is because the loop consumes more than it provides: a process that produces a product needs more of its own product over the loop than it can produce. Such a loop is not correct, you need to check the amounts of your inputs and outputs. You can share your example and we can check.