fixes #5673 in master 3.0
Merge pull request #5675 from dotCMS/merge-5673-in-master-3-0

fixes #5673 in master 3.0