fixed issue with AOA script