fixed duplicate root class problem