fix element order