BUGFIX node flags initialization to 0