closure variable fix