Fixed empty userId for trainings