fix attribute inheritance