diff --git a/pdf.c b/pdf.c
index f3fdb243ef9a54cdfb51999ab9ebde3a6462563f..cda753d57fe58482a098f7716c64b32916c7fa22 100644
--- a/pdf.c
+++ b/pdf.c
@@ -5025,18 +5025,19 @@ void parse_pagenode (
         if (item->token_type == TT_SEQUENCE) {
             double llx, lly, urx, ury; // typical but can be any diagonal
             HParsedToken * token;
-            token = H_INDEX_TOKEN(item, 0);
-            if (token->token_type == TT_SINT)  llx = (double)token->sint;
-            else                               llx =         token->dbl;
-            token = H_INDEX_TOKEN(item, 1);
-            if (token->token_type == TT_SINT)  lly = (double)token->sint;
-            else                               lly =         token->dbl;
-            token = H_INDEX_TOKEN(item, 2);
-            if (token->token_type == TT_SINT)  urx = (double)token->sint;
-            else                               urx =         token->dbl;
-            token = H_INDEX_TOKEN(item, 3);
-            if (token->token_type == TT_SINT)  ury = (double)token->sint;
-            else                               ury =         token->dbl;
+                    token = H_INDEX_TOKEN(item, 0);
+                    if (token->token_type == TT_SINT)  llx = (double)token->sint;
+                    else                               llx =         token->dbl;
+                    token = H_INDEX_TOKEN(item, 1);
+                    if (token->token_type == TT_SINT)  lly = (double)token->sint;
+                    else                               lly =         token->dbl;
+                    token = H_INDEX_TOKEN(item, 2);
+                    if (token->token_type == TT_SINT)  urx = (double)token->sint;
+                    else                               urx =         token->dbl;
+                    token = H_INDEX_TOKEN(item, 3);
+                    if (token->token_type == TT_SINT)  ury = (double)token->sint;
+                    else                               ury =         token->dbl;
+
             myNode->mediaBox.tx = fabs(llx - urx);
             myNode->mediaBox.ty = fabs(lly - ury);;
         }
@@ -5264,20 +5265,20 @@ parse_pagetree(
 	    if (item->token_type == TT_SEQUENCE) {
 	        double llx, lly, urx, ury; // typical but can be any diagonal
 	        HParsedToken * token;
-	        token = H_INDEX_TOKEN(item, 0);
-	        if (token->token_type == TT_SINT)  llx = (double)token->sint;
-	        else                               llx =         token->dbl;
-                token = H_INDEX_TOKEN(item, 1);
-                if (token->token_type == TT_SINT)  lly = (double)token->sint;
-                else                               lly =         token->dbl;
-                token = H_INDEX_TOKEN(item, 2);
-                if (token->token_type == TT_SINT)  urx = (double)token->sint;
-                else                               urx =         token->dbl;
-                token = H_INDEX_TOKEN(item, 3);
-                if (token->token_type == TT_SINT)  ury = (double)token->sint;
-                else                               ury =         token->dbl;
-                myNode->mediaBox.tx = fabs(llx - urx);
-                myNode->mediaBox.ty = fabs(lly - ury);;
+	    token = H_INDEX_TOKEN(item, 0);
+	    if (token->token_type == TT_SINT)  llx = (double)token->sint;
+	    else                               llx =         token->dbl;
+            token = H_INDEX_TOKEN(item, 1);
+            if (token->token_type == TT_SINT)  lly = (double)token->sint;
+            else                               lly =         token->dbl;
+            token = H_INDEX_TOKEN(item, 2);
+            if (token->token_type == TT_SINT)  urx = (double)token->sint;
+            else                               urx =         token->dbl;
+            token = H_INDEX_TOKEN(item, 3);
+            if (token->token_type == TT_SINT)  ury = (double)token->sint;
+            else                               ury =         token->dbl;
+            myNode->mediaBox.tx = fabs(llx - urx);
+            myNode->mediaBox.ty = fabs(lly - ury);;
 	    }
 	}