bug fix with camera detection