Update AdvancedMemoryEditor.xaml.cs

le exception