diff --git a/js/privatebin.js b/js/privatebin.js
index 7e73bf2..e8f4a8b 100644
--- a/js/privatebin.js
+++ b/js/privatebin.js
@@ -1639,7 +1639,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
} else if (pasteMetaData.expire_date) {
// display paste expiration
- let expiration = Helper.secondsToHuman(pasteMetaData.remaining_time),
+ let expiration = Helper.secondsToHuman(pasteMetaData.time_to_live || pasteMetaData.remaining_time),
expirationLabel = [
'This document will expire in %d ' + expiration[1] + '.',
'This document will expire in %d ' + expiration[1] + 's.'
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index 3b4685f..519809b 100644
--- a/tpl/bootstrap.php
+++ b/tpl/bootstrap.php
@@ -71,7 +71,7 @@ if ($MARKDOWN):
endif;
?>
-
+
diff --git a/tpl/page.php b/tpl/page.php
index 8b63f6b..ed4f027 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -49,7 +49,7 @@ if ($MARKDOWN):
endif;
?>
-
+