Fixing small mistake in node class