Fixed bugs that made system compatible with provone2 dataset.