Fix TRANSPOSE implementation