fix base/quote symbol sequence