fix issue with basepath