Fix typo and make semicolons consistent