closure stub fix