Fix stmodlog for type as in enigma