Fix an error in transpose