Fixed a bug with if statement

Added an if statement closing brace