Consistent code syntax and typo fix