diff --git a/scripts/combine_tesseract_with_pero_ocr_docker.py b/scripts/combine_tesseract_with_pero_ocr_docker.py
index a530d7d21173a0c3c32321353e39a859d2723f5e..9cfcfa3807b3c33eaec2931594ddcfbcc524e57b 100644
--- a/scripts/combine_tesseract_with_pero_ocr_docker.py
+++ b/scripts/combine_tesseract_with_pero_ocr_docker.py
@@ -28,7 +28,7 @@ def main() -> None:
         for suffix in ('hocr', 'tsv', 'box', 'page'):
             shutil.copy(
                 (TESSERACT_PATH / tesseract_filename.stem).with_suffix(f'.{suffix}'),
-                (OUTPUT_PATH / tesseract_filename.stem).with_suffix(f'.{suffix}'),
+                (OUTPUT_PATH / pero_ocr_filename.stem).with_suffix(f'.{suffix}'),
             )
 
         for suffix in ('xml', ):