fix base path bug