final fix to array index attribute/metadata issue