Bugfix: wrong return value in registerNodes