APM_Control: fixed shadowing of _last_out variables