fix basepath issue