small bug fix to avoid math operations on node IDs