fix mbg type sniffing