Added missing semicolon and modified a variable name