fixing permanent crash when clearing app cache