diff --git a/plugins/af_sort_bayes/init.js b/plugins/af_sort_bayes/init.js
index 6ea8f6c11..6b8dcf78a 100644
--- a/plugins/af_sort_bayes/init.js
+++ b/plugins/af_sort_bayes/init.js
@@ -1,6 +1,8 @@
-function bayesTrain(id, train_up) {
+function bayesTrain(id, train_up, event) {
try {
+ event.stopPropagation();
+
var query = "backend.php?op=pluginhandler&plugin=af_sort_bayes&method=trainArticle&article_id=" + param_escape(id) +
"&train_up=" + param_escape(train_up);
diff --git a/plugins/af_sort_bayes/init.php b/plugins/af_sort_bayes/init.php
index 3958d27b2..51294b46e 100644
--- a/plugins/af_sort_bayes/init.php
+++ b/plugins/af_sort_bayes/init.php
@@ -117,11 +117,11 @@ class Af_Sort_Bayes extends Plugin {
function hook_article_button($line) {
return "" .
"";
}