fix: The presence of ".pdf" multiple times in the pdf_path results in model_path not matching the expected.