small closure bug