Fixed bug where if statement didn't have parenthesis, causing it to just exit