fix minor typo and style issues