Fix the control conditions.