diff --git a/templates/courseware/block_types/dialog_cards.php b/templates/courseware/block_types/dialog_cards.php
index 6fff3efe7963b80895948edbe837c23dd4f3695c..fedbf717a8fa66eaba6de7191155d1b35f129c59 100644
--- a/templates/courseware/block_types/dialog_cards.php
+++ b/templates/courseware/block_types/dialog_cards.php
@@ -9,10 +9,10 @@
             <?= htmlReady($card['front_text']); ?>
         </p>
         <p>
-            <? if ($card['front_file_ref']): ?>
+            <? if ($card['back_file_ref']): ?>
                 <img src="<?= htmlReady($card['back_file_ref']->getDownloadURL()); ?>">
             <? endif; ?>
             <?= htmlReady($card['back_text']); ?>
         </p>
     <? endforeach; ?>
-</div>
\ No newline at end of file
+</div>