fix a crash of dual-general mode