Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1706 (cherry picked from commit 68c794f608)
68c794f608