Fix a training bug