fix double replace root path