fix attribute removal