Fix typo in trans func.