diff --git a/xbmcswift2/xbmcmixin.py b/xbmcswift2/xbmcmixin.py
index <HASH>..<HASH> 100644
--- a/xbmcswift2/xbmcmixin.py
+++ b/xbmcswift2/xbmcmixin.py
@@ -144,7 +144,7 @@ class XBMCMixin(object):
                 ret = xbmcgui.Dialog().select('A storage file is corrupted. It'
                                               ' is recommended to clear it.',
                                               choices)
-                if choices[ret] == 'Clear storage':
+                if ret == 0:
                     os.remove(filename)
                     storage = TimedStorage(filename, file_format, TTL)
                 else:
Fix #<I>. Handle cancelling of clear storage dialog