Fix reference placement