Fix active nodes search
First baldwin implementation