Fixed bugs in parallelization of training structures.