Fixed problems when fetching groups form AD