fixed transpose for odd dimensions