fix aliasing in buildColumns