bug fix for live camera input