Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1716 (cherry picked from commit a3038e75cfb6745a4b12281630768262c06090d2)