Condition for conditional activities is wrong