fix ScopeBar bug