Fix typo and code formatting