Make transpose stable