Remove captures global variable