Fix a bug
Delete disabled events
Fix another bug
Delete the 3 variables