fixed typo and add missing semicolon