diff --git a/changes-5.1.html b/changes-5.1.html
index 26003ad60..0b5358172 100644
--- a/changes-5.1.html
+++ b/changes-5.1.html
@@ -16,6 +16,7 @@
Yap-5.1.2:
+- FIXED: min_list (obs from Filip Zelezny).
- FIXED: -l and -L options (again?).
- FIXED: if we cannot read more chars in saved state we're dead.
- FIXED: termination info for failed and detached threads (obs Paulo Moura).
diff --git a/library/lists.yap b/library/lists.yap
index a496d4d60..3166b1205 100644
--- a/library/lists.yap
+++ b/library/lists.yap
@@ -342,8 +342,8 @@ min_list([H|L],Max0,Max) :-
(
H < Max0
->
- max_list(L, H, Max)
+ min_list(L, H, Max)
;
- max_list(L, Max0, Max)
+ min_list(L, Max0, Max)
).