fix scope on tempdata file