fix captured variable name