fixes #5644 in master3.0
Merge pull request #5649 from dotCMS/merge-5644-into-master-3-0

fixes #5644 in master3.0