fix bugs regarding to typo