fixed bug where the CameraActivity starts twice