fix aliasing for legacy