Fix admin AD check functionality