Fixed a bug where mode_set was throwing RuntimeError in BlendSegOperator.execute