bug fixed for camera