### Steps to reproduce 1. Open a project with a clip and two VST plugins in the stack 2. Remove the second plugin from the stack 3. Cmd + Q 4. Save 5. Observe ### Expected behavior No crash ### Actual behavior "Audacity quit unexpectedly." https://github.com/user-attachments/assets/15ea54eb-ee90-4e8d-a278-c43861dbf62e ### Audacity Version master ### Operating system macOS ### Additional context _No response_