Changed an if statement.