Fixed bug in history_class.inc.php