Fix cannot infer basepath error