Known issue https://forum.lazarus.freepascal.org/index.php?topic=48495.0
So a bug should filed. Because the problem is since nearly a year.