Update class.eventfactory.inc.php