#399 fix attribute output