typo and bug fix

typo and a bug is fixed