Update application/classes/Widget.php