fixed problems in trainers.php