fix webcam bug