Fix doc typo and remove underscore from local var