Fixed bug in AR scoping.