Fixed a crash when resuming the app after being paused for a while
3.0.2