Fixed bad syntax in if-statement