Fixed the bug when navigating away from the Camera activity..