Fix rootPath replace bug
Version 0.1.2