Fixed bugs in camera app.