Fix 'if' statement in NodeConnector.scala