Update ScopeFunc.hpp

fix scope error