fix accidentally deleted brace and missing var