Fixed broken conditions.