fix webcam demo