fix parent labels being lost issue