fixes #3487
fixed merge for #3491
Merge branch 'master-2.5' of github.com:dotCMS/dotCMS into master-2.5