fixed root path bug