fix legacy thing