diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -209,7 +209,9 @@ var Avatar = exports.Avatar = function (_PureComponent) {
     }, {
         key: 'componentWillUnmount',
         value: function componentWillUnmount() {
-            this.state.internal.active = false;
+            if (this.state.internal) {
+                this.state.internal.active = false;
+            }
         }
     }, {
         key: '_renderAsImage',
diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -123,7 +123,9 @@ class Avatar extends PureComponent {
     }
 
     componentWillUnmount() {
-        this.state.internal.active = false;
+        if (this.state.internal) {
+            this.state.internal.active = false;
+        }
     }
 
     static getRandomColor = getRandomColor
fix unsafe state updates in componentWillunmount