fix DM connect bug