Fix issue switching from webcam to upload ing