legacy: fix aliasing