get_trainers function bug fixed