Fixed get root name bug.