Fixed "expecting EOF, found 'if'" error