Fix error 'cannot infer basepath'