Pass correct dictionary to lengthPA for single-element environments