fix scope binding