Apply positive nodes after negative nodes, fixes a bunch of issues