fixes AR generator