bug fixes for camera activity