fixed bug when returning default/keyed array.