Fixed creation of AR by repository