Feature #3306: Fix wrong AR template creation