fix use of basePath