Fix inverted if statement.