fixed crash when exiting app with liveview on