fix wrong ag_mode sending