Fix typo and missing var