Fixed a stupid syntax error...

Forgot the ;then in an if statement