object error fix in the widgets/navigation.php