Less buggy transposing method.