fix aparam_alerts, alerts list structure and  custom_attributes