Fixed type error in control_md