fix legacy reflect usage