PuPu Omzy wrote the code I just didn't want it to get lost. Maki did a fix in 2019. Original source: https://forums.qhimm.com/index.php?topic=13444.0