Missing defer on one variable