Fix parallel bug and memory leak in new ARefEE