fix wpdb and undefined index after reset icon