Fix array pass-by-reference problem
Merge branch 'put-metadata-in-tabs'