Not accessing arrays directly returned from a function