fix basepath