fixed bug with transpose argument