diff --git a/cps/templates/readcbr.html b/cps/templates/readcbr.html
index 6ab14a94..3d0ccab1 100644
--- a/cps/templates/readcbr.html
+++ b/cps/templates/readcbr.html
@@ -205,7 +205,10 @@
useBookmarks: "{{ g.user.is_authenticated | tojson }}"
};
if (calibre.useBookmarks) {
- currentImage = eval(calibre.bookmark)
+ currentImage = eval(calibre.bookmark);
+ if (typeof currentImage !== 'number'){
+ currentImage = 0;
+ }
}
document.onreadystatechange = function () {