[BUG #8375] flush queue after creating the root node