fix_element_orientation mod