Fix typo and missing const