fix base url bug