fix encoder typo