fixed bugs in camera