fixed some array indexing issues if array is param in id node