fixed Crashing error when the Camera activity was paused