fix attribute formula