Current implementation may have some problems with Undo operation (Ctrl+z), which can result in a broken curve's GameObject in some scenarios