Fix reference construction.