Properly delete elements from curve editor when bezier is removed