diff --git a/devices/wim/config/ags/config.js b/devices/wim/config/ags/config.js
index 87126f97..83a30f94 100644
--- a/devices/wim/config/ags/config.js
+++ b/devices/wim/config/ags/config.js
@@ -12,11 +12,6 @@ import Overview      from './js/overview/main.js';
 import AppLauncher   from './js/applauncher/main.js';
 import * as Corners  from './js/screen-corners.js';
 
-// Has to be a traditional function for 'this' scope
-// Keep this here for no errors
-Array.prototype.removeItem = function (el) { this.splice(this.indexOf(el), 1); };
-
-
 const scss = App.configDir + '/scss/main.scss';
 const css  = App.configDir + '/style.css';
 exec(`sassc ${scss} ${css}`);
diff --git a/devices/wim/config/ags/js/notifications/base.js b/devices/wim/config/ags/js/notifications/base.js
index 864043df..d1c8fe10 100644
--- a/devices/wim/config/ags/js/notifications/base.js
+++ b/devices/wim/config/ags/js/notifications/base.js
@@ -139,7 +139,7 @@ export const Notification = ({
             notifWidget.child.setStyle(notifWidget.child[`_squeeze${side}`]);
             timeout(500, () => {
                 HasNotifs.value = Notifications.notifications.length > 0;
-                notifWidget.get_parent().removeItem(notifWidget);
+                notifWidget.get_parent().remove(notifWidget);
                 notifWidget.destroy();
             });
         });
diff --git a/devices/wim/config/ags/js/overview/clients.js b/devices/wim/config/ags/js/overview/clients.js
index 36f64c83..6be89a7e 100644
--- a/devices/wim/config/ags/js/overview/clients.js
+++ b/devices/wim/config/ags/js/overview/clients.js
@@ -1,3 +1,6 @@
+// Has to be a traditional function for 'this' scope
+Array.prototype.removeItem = function (el) { this.splice(this.indexOf(el), 1); };
+
 import App      from 'resource:///com/github/Aylur/ags/app.js';
 import Hyprland from 'resource:///com/github/Aylur/ags/service/hyprland.js';
 import { Icon, Revealer } from 'resource:///com/github/Aylur/ags/widget.js';