corrected oapmc bug on refs