fixed bugs in camera example