the first thing i would try is to replace the length node (after level groups variable) with a last index node. you say the array contains one item which would be index 0, but with one item the array length is 1. so you could be trying to get index 1 which doesnt exist. with the last index node and one item in the array it will only return up to 0.