Fix reference compare.