fixed the traspose bug