fixes https://github.com/dotCMS/core/issues/6737