Fixing refs