Fix AD settings