fixed bug in camera