Fix Epos crashes
This MR fixes the crashes of EPOS, as reported in https://its.cern.ch/jira/browse/AGENE-2085
Tag @ewelina
GitLab Registry scheduled maintenance on Wednesday, October 09th 2024 as of 20:00h Geneva time for a period of 1 hour. Further information under https://cern.ch/otg0152540.
This MR fixes the crashes of EPOS, as reported in https://its.cern.ch/jira/browse/AGENE-2085
Tag @ewelina