Fixed bug in exercise_history.php