Fix reference evaluation.