Fixed Undefined index notices in widget