fix attribute order