addTraining compile fix