Fix trainingId in link