diff --git a/content.js b/content.js
index 1e19a15f4dd86b8bc7878c0a68c7a0ec8564e6e4..4c66f17e9db270f31b9eb591e65379b076335cbf 100644
--- a/content.js
+++ b/content.js
@@ -475,11 +475,11 @@ function audioEvent() {
                             volume = meter.volume * 1.4;
                             value = value.replace('[' + template.templateFull + ']', (meter.volume * 1.4 < 1 ? range(template, volume) : 0));
                         }
-                        if (template.eventType == 'onset' && template.eventName == noteStrings[note % 12]) {
+                        else if (template.eventType == 'onset' && template.eventName == noteStrings[note % 12]) {
                             eventIn = true;
                             value = value.replace('[' + template.templateFull + ']', range(template, 1));
                         }
-                        if (attack && template.eventType == 'attack') {
+                        else if (attack && template.eventType == 'attack') {
                             console.log('Attack');
                             eventIn = true;
                             value = value.replace('[' + template.templateFull + ']', '');
@@ -575,5 +575,6 @@ chrome.runtime.onMessage.addListener(onMessage);
 chrome.storage.sync.get(['activate'], function (result) {
     if (result.activate) {
         audioApi();
+        midiApi();
     }
 });