Fix invalid conditions.