fixed transpose issue, addressing #21