diff --git a/anki/sched.py b/anki/sched.py
index 7e5bcc7ca..d49507080 100644
--- a/anki/sched.py
+++ b/anki/sched.py
@@ -997,7 +997,7 @@ due = odue, odue = 0, odid = 0, usn = ?, mod = ? where %s""" % lim,
elif o == DYN_DUE:
t = "c.due"
elif o == DYN_DUEPRIORITY:
- t = "(case when queue=2 and due <= %d then (ivl / cast(%d-due+0.001 as real)) else 10000+due end)" % (
+ t = "(case when queue=2 and due <= %d then (ivl / cast(%d-due+0.001 as real)) else 100000+due end)" % (
self.today, self.today)
else:
# if we don't understand the term, default to due order
diff --git a/designer/dyndconf.ui b/designer/dyndconf.ui
index 41d9bf25e..39ca36f76 100644
--- a/designer/dyndconf.ui
+++ b/designer/dyndconf.ui
@@ -46,7 +46,7 @@
1
- 9999
+ 99999