fix attribute issue