Fixed run-time errors in workflow segmentation algorithm training.