fix scope in notify