Correcting the bug of the mode of the camera (fixed or continuous) and the number of frame to collect.