Added semicolon to if clause