Fixed bug occurring when videos were only partly analyzed
Minor other changes