Fixed creation of global nodes

Signed-off-by: Stefan Marr <git@stefan-marr.de>