fixing https://github.com/systemd/systemd/issues/19689 (cherry picked from commit 682e043c)
mentioned in commit b28c0e61
mentioned in commit 8e00d92f