Fixed export so the elements would hold order and depth