fix attribute placement