diff --git a/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs b/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs
index f0d3b5b..1c9bac6 100644
--- a/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs
+++ b/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs
@@ -1,6 +1,4 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
using System.Threading.Tasks;
using Windows.UI.Composition;
using Windows.UI.Xaml;
@@ -30,7 +28,7 @@ internal AttachedAnimatableCompositionEffect(
///
protected override void DisposeCore()
{
- Sprite.StopAnimation(Parameters.Property);
+ EffectBrush.StopAnimation(Parameters.Property);
base.DisposeCore();
}
diff --git a/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs b/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs
index 1e69ebe..052f7f5 100644
--- a/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs
+++ b/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs
@@ -31,7 +31,7 @@ internal AttachedCompositeAnimatableCompositionEffect(
///
protected override void DisposeCore()
{
- foreach (String key in PropertiesAnimationValues.Keys) Sprite.StopAnimation(key);
+ foreach (String key in PropertiesAnimationValues.Keys) EffectBrush.StopAnimation(key);
base.DisposeCore();
}