fix base path