add a fix for training.pl