- fixed a scope bug