The existing logic checked for is_MD == 1, but the function is called with a bitwise operator check which does not evaluate to 1.