fixed typo and error in previous commit