Fix the wrong element order