fixed some typo and error