fixed webcam demo issue