fix run_xmd