fixed bugs in camera feature