fixed typo and bug