fix attribute settings