fixing refs