Fixed bug connected to new version of AR