After looking at this further, the original code works on natty. So my simple solution would be to compare the type of the returned value, if it's a list, assign the correct element.
After looking at this further, the original code works on natty. So my simple solution would be to compare the type of the returned value, if it's a list, assign the correct element.