fix broken refs