fix getTraining API method