Fix typos

I accidentally misspelled "transform" as "tranform" in some places in previous commits. Sorry about that.