Fixed AD name and assigning of value