fix legacy sites