Fix page order and hierarchy importing