Overflow fix in MDX.h