fix root-relative path bug