Fixing attributes in array elements