Fix clearing dirty flag (#2023)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b9aeb06..11b037f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-# 5.0.0
+# 5.0.1
 ### New Features
 * [Removed API] Removed the `setScale(float)` APIs from `LottieAnimationView` and `LottieDrawable`. The expected behavior was highly ambiguous when paired with other scale types and canvas transformations. For the vast majority of cases, ImageView.ScaleType should be sufficient. For remaining cases, you may apply transformations to Canvas and use `LottieDrawable#draw` directly. 
 * Added support for the "Rounded Corners" effect on Shape and Rect layers ([#1953](https://github.com/airbnb/lottie-android/pull/1953))
diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java b/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
index 0c0ee78..9f535be 100644
--- a/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
+++ b/lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
@@ -518,6 +518,7 @@
       }
     }
 
+    isDirty = false;
     L.endSection("Drawable#draw");
   }
 
@@ -540,6 +541,7 @@
     } else {
       compositionLayer.draw(canvas, matrix, alpha);
     }
+    isDirty = false;
   }
 
   // <editor-fold desc="animator">
@@ -1412,7 +1414,6 @@
       softwareRenderingOriginalCanvasMatrix.invert(softwareRenderingOriginalCanvasMatrixInverse);
       softwareRenderingOriginalCanvasMatrixInverse.mapRect(softwareRenderingDstBoundsRectF, softwareRenderingTransformedBounds);
       convertRect(softwareRenderingDstBoundsRectF, softwareRenderingDstBoundsRect);
-      isDirty = false;
     }
 
     softwareRenderingSrcBoundsRect.set(0, 0, renderWidth, renderHeight);