diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html
index 68d8005..6d30efd 100644
--- a/templates/contest/ranking.html
+++ b/templates/contest/ranking.html
@@ -250,7 +250,7 @@
// update best submissions
let curBest = bestSubmissions[problem]
- if (scoretimeComparison(curSubmission, curBest)) {
+ if (scoretimeComparison(curSubmission, curBest) && score) {
bestSubmissions[problem] = curSubmission;
}
}