This only seems to happen with custom modules.
The modules used are part of zombies&demons mod which I am co-developing. It works fine with the 2d editor.
This is a big problem because when you press OK, it switches the module to the wrongfully auto-selected module.
Gif animation of problem on editor: https://gfycat.com/ScalyPartialHairstreak