Fixes wrong rootPath.