Fix inverted bool_switch logic
Fix inverted bool_switch logic