Base, Mod, MonoDevice, hex   :   fixed several small bugs.