fixing trainer id get