hack to fix multiple event listeners on delete