fix regression in _addTraining