fix scope err