fixed multiple root problem