fixes #5837
Merge pull request #5924 from dotCMS/issue-5837-multiple-files-not-working

fixes #5837