Fix when clause.