diff --git a/src/main/java/ui/window/JDialogPerformancePragma.java b/src/main/java/ui/window/JDialogPerformancePragma.java
index b9d0a345cdecd177196cc0a395ce6399bb85cf54..ae54ce24a9a9040c93f7a877bf814707423eb33f 100644
--- a/src/main/java/ui/window/JDialogPerformancePragma.java
+++ b/src/main/java/ui/window/JDialogPerformancePragma.java
@@ -358,7 +358,7 @@ public class JDialogPerformancePragma extends JDialogBase implements ActionListe
         //String command = evt.getActionCommand();
 
         // Compare the action command to the known actions.
-        if (ect.getSource() == cancel)  {
+        if (evt.getSource() == cancel)  {
             cancel();
         } else if (evt.getSource() == close) {
             close();
@@ -382,7 +382,7 @@ public class JDialogPerformancePragma extends JDialogBase implements ActionListe
             helpPopup.setVisible(false);
         }
     }
-    
+
     public String getText() {
         return text;
     }