diff --git a/main.nf b/main.nf
index 872d6e6994b7207533873ee1bb4ae27d82b3ba20..a57fe1ef38bef1d2b704d45dad9f1666976caac4 100644
--- a/main.nf
+++ b/main.nf
@@ -850,6 +850,7 @@ process multiqc {
 
    input:
    file multiqc_config from ch_multiqc_config
+   file (mqc_custom_config) from ch_multiqc_custom_config.collect().ifEmpty([])
    file ('input_*/*') from all_mstats.concat(all_mergestat).collect()
    file ('software_versions/*') from software_versions_yaml
    file workflow_summary from create_workflow_summary(summary)