fix attribute resolution