Fix bug in AR adapter