Fixes the rootPath.