fixes basePath