Fixed syntaxtical errors in if statements.