fix attribute output