fix a bug about copying non-ref attributes to the expanded element