Fixed bug in saving attrRefArrays again