undefine empty capture variables after setting really captured