Fixed code style and typo.