Fix undefined aid on disconnect