fix tuple_element order