diff --git a/src/com/frostwire/jlibtorrent/Session.java b/src/com/frostwire/jlibtorrent/Session.java
index <HASH>..<HASH> 100644
--- a/src/com/frostwire/jlibtorrent/Session.java
+++ b/src/com/frostwire/jlibtorrent/Session.java
@@ -821,7 +821,7 @@ public final class Session {
     }
 
     void fireAlert(Alert<?> a) {
-        fireAlert(a, a.getSwig().type());
+        fireAlert(a, a.getType().getSwig());
         fireAlert(a, -1);
     }
Important fix when firing not swig alerts.